<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="renderer" content="webkit">
    <title>登录</title>
    <meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
    <meta name="description" content="H+是一个完全响应式，基于Bootstrap3最新版本开发的扁平化主题，她采用了主流的左右两栏式布局，使用了Html5+CSS3等现代技术">
    <link href="./houtai/css/bootstrap.min.css?v=3.4.0" rel="stylesheet">
    <link href="./houtai/font-awesome/css/font-awesome.css?v=4.3.0" rel="stylesheet">
    <link href="./houtai/css/animate.css" rel="stylesheet">
    <link href="./houtai/css/style.css?v=2.2.0" rel="stylesheet">
    <script  src="./houtai/Jquery/jquery-3.0.0.js"></script>
    <script type="text/javascript">
        function check(){
            if(check1() && check2()){
            return true;
            }else{
            return false;
            }      
        }
        
         function check1(){
            var uname =$('#uname').val().replace(" ","");
            if(uname==""){
                $('#uname').attr("placeholder","用户名不能为空");
                return false;
            }
             return true;
            }
            
            
            
             function check2(){
            var password =$('#password').val().replace(" ","");
            if(password==""){
               $('#password').attr("placeholder"," 密码不能为空 ");
                return false;
            }
             return true;
            }      
    </script>
</head>

<body class="gray-bg">

    <div class="middle-box text-center loginscreen  animated fadeInDown">
        <%
		Integer error = (Integer)request.getAttribute("error");
		if(error!=null&&error==1){
			out.print("<script type='text/javascript'>alert('登录失败');</script>");
		}
	    %>
        <div>  
            <div>
                <h1 class="logo-name">pc</h1>
            </div>
            <h3>欢迎使用 品诚网络系统</h3>
            <form class="m-t"  action="login.do" method="post" onsubmit="return check()">
                <div class="form-group">
                    <input type="text" class="form-control" placeholder="用户名" id="uname" name="username" onblur="check1()"/> 
                </div>
                <div class="form-group">
                    <input type="password" class="form-control" placeholder="密码" id="password" name="password" onblur="check2()"/> 
                </div>
                <button type="submit" class="btn btn-primary block full-width m-b">登 录</button>
                <p class="text-muted text-center"><a href="forget"><small>忘记密码了？</small></a></p>
            </form>
        </div>
    </div>

    <!-- Mainly scripts -->
    <script src="./houtai/js/jquery-2.1.1.min.js"></script>
    <script src="./houtai/js/bootstrap.min.js?v=3.4.0"></script>
    <%--<script type="text/javascript" src="http://tajs.qq.com/stats?sId=9051096" charset="UTF-8"></script><!--统计代码，可删除-->--%>
</body>

</html>